# def getPoint():
#     x = 10
#     y = 20
#     return x, y
#
# x, y = getPoint()


# def getPoint():
#     x = 10
#     y = 20
#     return x, y
#
# getPoint()
# print(x, y)


# x = 20
# def test():
#     x = 10
#     print(f'函数内部 x = {x}')
#
# test()
# print(f'函数外部 x = {x}')


# x = 20
# def test():
#     print(f'x = {x}')
# test()


# x = 20
# def test():
#     global x
#     x = 10
#     print(f'函数内部 x = {x}')
# test()
# print(f'函数外部 x = {x}')


for i in range(1, 10):
    print(f'函数内部 i = {i}')
print(f'函数外部 i = {i}')